package io;

import java.io.FileInputStream;
import java.io.IOException;

public class FISDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("fos.txt");
        int len;
        len = fis.read();
        System.out.println(len);
        System.out.println((char) len);
        System.out.println("===================");
        int len2;
        len2 = fis.read();
        System.out.println(len2);
        System.out.println((char) len2);
        System.out.println("===================");
        int len3;
        len3 = fis.read();
        System.out.println(len3);
        System.out.println((char) len3);
        System.out.println("===================");
        int len4;
        len4 = fis.read();
        System.out.println(len4);
        System.out.println((char) len4);
        fis.close();
    }
}
